package com.rightsidetech.system.dtos.request.store;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class StoreAwardIntegralReq implements Serializable {

    @ApiModelProperty(required = true)
    @NotNull(message = "id不可为空")
    private Long id;

    @ApiModelProperty(value = "奖励的积分",required = true)
    @Min(value = 0,message = "奖励的积分不可未负数")
    @Max(value = 99999,message = "奖励积分数值过大")
    @NotNull(message = "奖励的积分不可为空")
    private BigDecimal integral;

    @ApiModelProperty("备注")
    @Length(max = 20,message = "备注最多20个字符")
    private String remark;

    @ApiModelProperty(value = "大区id",hidden = true)
    private Long areaId;
}
